class Siteadmin::EducationsController < ApplicationController
	before_filter :require_admin
	load_and_authorize_resource :through => :profile

	active_scaffold :educations do |config|
		config.create.columns.exclude :profile
		config.update.columns.exclude :profile

		config.columns[:name].label = "School/University Name"
		config.columns[:startyear].label = "Enrollment Year"
		config.columns[:endyear].label = "Graduated Year"

		config.list.columns = [:edutype, :name, :major, :gpa, :startyear, :endyear]
	end
end
